package config

type Config struct {
	Server Server      `toml:"server"`
	Pprof  Pprof       `toml:"pprof"`
	Mysql  []MysqlConf `toml:"mysql"`
	Log    Log         `toml:"log"`
}
type MysqlConf struct {
	Name   string   `toml:"name"`
	Master string   `toml:"master"`
	Slaves []string `toml:"slaves"`
}

type Server struct {
	Name          string `toml:"name"`
	Port          int64  `toml:"port"`
	ReadTimeout   int64  `toml:"read_timeout"`
	write_timeout int64  `toml:"write_timeout"`
}

type Pprof struct {
	Port int64 `toml:"port"`
}
type Log struct {
	Level   string `toml:"level"`
	LogPath string `toml:"logpath"`
	Rotate  string `toml:"rotate"`
	Cosole  bool   `toml:"cosole"`
}
